﻿<Window x:Class="CPPEI.PM.Shell.Dialogs.UserManagementDlg"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="UserManagementDlg" Height="480" Width="640"
        WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <ToolBar Grid.Row="0">
            <Button Name="_ctlBtnCreate" Click="_ctlBtnCreate_Click_1">
                <StackPanel Orientation="Horizontal">
                    <Image Source="../Res/user_add.gif"/>
                    <TextBlock Text="创建"/>
                </StackPanel>
            </Button>
        </ToolBar>
        <DataGrid Name="_ctlDataGrid" Grid.Row="1" AutoGenerateColumns="False">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Id" Binding="{Binding Path=Id}"/>
                <DataGridTextColumn Header="Account" Binding="{Binding Path=Account}"/>
                <DataGridTextColumn Header="Name" Binding="{Binding Path=Name}"/>
                <DataGridTextColumn Header="Email" Binding="{Binding Path=Email}"/>
                <DataGridTextColumn Header="Phone" Binding="{Binding Path=Phone}"/>
                <DataGridTextColumn Header="CreatedTime" Binding="{Binding Path=CreatedTime,StringFormat=yyyy-MM-dd}"/>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Window>
